﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infinity_World
{
    /// <summary>
    /// The game map
    /// </summary>
    class Map
    {
        public Map(UInt64 x, UInt64 y, UInt64 depht)
        {
            MapArray = new Block[x, y, depht];
        }

        public Block[, ,] MapArray;
    
        public void setBlock(Block newBlock, UInt64 x, UInt64 y, UInt64 depht)
        {
            MapArray[x, y, depht] = newBlock;
        }

        public void setBlock(MaterialType newType, UInt64 x, UInt64 y, UInt64 depht)
        {
            MapArray[x, y, depht] = new Block(newType);
        }
    }
}
